import * as api from './util';

export function getUserInfo() {
  return api.get('/auth/info');
};


export function editUserInfo(postbody) {
  return api.post('/applets/customUser/buyer/edit', postbody);
};

export function uploadImg(postbody) {
  return api.post('/applets/oss/uploadFileCode', postbody);
};

export function setOpinion(params) {
  return api.post('/applets/customUser/opinion', params);
}

export function updateSwitchInfo() {
  return api.get('/applets/provider/customUser/info');
}

